package com.scuec.groupfive.service;

import com.scuec.groupfive.entity.FavoriteFolder;
import com.scuec.groupfive.entity.Questions;
import java.util.List;

public interface FavoriteFolderService_z {
    // 获取用户的收藏夹列表
    List<FavoriteFolder> getFoldersByUserId(Long userId);

    // 获取收藏夹中的题目
    List<Questions> getQuestionsByContent(Long userId, Long folderId, String examType,
                                          String questionType, String subjectId, Integer offset, Integer pageSize);

    // 创建收藏夹
    FavoriteFolder createFolder(FavoriteFolder folder);

    // 更新收藏夹
    FavoriteFolder updateFolder(FavoriteFolder folder);

    // 删除收藏夹
    void deleteFolder(Long id);

    // 移动题目到收藏夹
    void moveQuestion(Long userId, Long questionId, Long folderId);

    Integer countQuestions(Long userId, Long folderId, String examType,
                           String questionType, String subjectId);

    void addQuestionToFolder(Long userId, Long questionId, Long folderId);

    void deleteQuestionFromFolder(Long userId, Long questionId);

    List<Questions> getFavoriteQuestions(Long userId, Long folderId, String examType, String questionType, String subjectId, Integer page, Integer pageSize);

    Integer countFavoriteQuestions(Long userId, Long folderId, String examType, String questionType, String subjectId);
}